package edu.sctu.renpingan.day20150510.textone;

/**
 * Created by user18 on 2015/5/10.
 */
public class TextOne {
    public int i ;
    public int sum ;
    public TextThere number1 ;
    public TextOne(TextThere textThere){
        number1=textThere;
    }

    public TextThere getSum(){

        for (i = 0;i<number1.number;i++){
            sum += i;
        }
        TextThere textthere = new TextThere();
        textthere.number = sum;
        return  textthere;

    }
}
